# Contributor: Ralf Rachinger <alpine@ralfrachinger.de>
# Maintainer: Ralf Rachinger <alpine@ralfrachinger.de>
pkgname=gnome-text-editor
pkgver=42.2
pkgrel=0
pkgdesc="A simple text editor for GNOME"
url="https://apps.gnome.org/app/org.gnome.TextEditor"
arch="all !s390x !riscv64"
license="GPL-3.0-or-later"
makedepends="
	meson
	glib-dev
	gtk4.0-dev
	gtksourceview5-dev
	enchant2-dev
	libadwaita-dev
	itstool
	"
checkdepends="
	appstream-glib
	desktop-file-utils
"
subpackages="$pkgname-doc $pkgname-lang"
source="https://gitlab.gnome.org/GNOME/gnome-text-editor/-/archive/$pkgver/gnome-text-editor-$pkgver.tar.gz"

build() {
	abuild-meson \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
8b132e3a8b1144af6dfd5defc03e39408a086c30817d948fc542d50332153fe2be74e127ae66c0798d163e12576c131851df7926b0e2e8208e5a7378f36b8bdc  gnome-text-editor-42.2.tar.gz
"
